package com.cskaoyan.module.vo.wx.wxy;

import com.cskaoyan.module.pojo.MarketAftersale;
import com.cskaoyan.module.pojo.MarketOrder;
import com.cskaoyan.module.pojo.MarketOrderGoods;
import lombok.Data;

import java.util.List;

@Data
public class AftersaleDetailDataVo {

    MarketAftersale aftersale;
    MarketOrder order;
    //List<AftersaleOrderGoodsVo> orderGoods;
    List<MarketOrderGoods> orderGoods;

    public static AftersaleDetailDataVo data(MarketAftersale aftersale, MarketOrder order, List<MarketOrderGoods> orderGoods) {
        AftersaleDetailDataVo aftersaleDetailDataVo = new AftersaleDetailDataVo();
        aftersaleDetailDataVo.setAftersale(aftersale);
        aftersaleDetailDataVo.setOrder(order);
        aftersaleDetailDataVo.setOrderGoods(orderGoods);
        return aftersaleDetailDataVo;
    }
}
